package com.example.bilibili_miaosha.vo;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
    //通用
    ERROR(500,"服务端异常"),
    SUCCESS(200,"SUCCESS"),
    //登录模块
    MOBILE_ERROR(500211,"手机号码错误"),
    ACCESS_LIMIT_REAHCED(500212,"您还没有登录"),
    SESSION_ERROR(500213,"session错误"),
    LOGIN_ERROR(500210,"用户名或密码错误"),

    //秒杀模块
    EMPTY_STOCK(500500,"库存不足") ,
    REPEAT_ERROR(500511,"该商品每人仅限一件"),
    ACCESS_LIMIT_REACHED(500544,"请不要频繁操作"),

    ERROR_CAPTCHA(5003000,"验证码错误");

    private final Integer code;
    private final String Message;
}
